/*
import React, {useState} from 'react';
import {FormProps, message} from 'antd';
import { Button, Checkbox, Form, Input } from 'antd';
import {getLoginUserUsingGet} from "@/services/backend/userController";

type FieldType = {
  email?: string;
  password?: string;
  code?: string;
  checkPassword?: string;
};

const [userInfo, setUserInfo] = useState<API.UserVO>();
const [loading, setLoading] = useState(true);
const onFinish: FormProps<FieldType>['onFinish'] = (values) => {
  console.log('Success:', values);

};
const onFinishFailed: FormProps<FieldType>['onFinishFailed'] = (errorInfo) => {
  console.log('Failed:', errorInfo);

};
const getUserInfo = async () => {
  const res = await getLoginUserUsingGet();
  if (res.code === 0) {
    setUserInfo(res.data)
    setLoading(false)
  } else {
    message.error("信息获取失败-" + res.message)
    setLoading(false)
  }

}

const UpdateInfo: React.FC = () => (
  <>
    <Form
      labelCol={{span: 4}}
      wrapperCol={{span: 14}}
      layout="horizontal"
      // onValuesChange={onFormLayoutChange}
      onFinish={async (values) => {
        await updateMyInfo(values as API.UserUpdateMyRequest);
      }}
      form={form}
      initialValues={userInfo}
    >
      <Form.Item label="账号" name="userAccount">
        <Input placeholder={userInfo?.userAccount} name="userAccount"/>
      </Form.Item>
      <Form.Item label="昵称" name="userName">
        <Input placeholder={userInfo?.userName} name="userName"/>
      </Form.Item>
      <Form.Item label="手机号" name="phone">
        <Input placeholder={userInfo?.phone} name="phone"/>
      </Form.Item>
      <Form.Item label="邮箱" name="email">
        <Input placeholder={userInfo?.email} name="email"/>
      </Form.Item>
      <Form.Item label="个人简介" name="userProfile">
        <TextArea rows={4} placeholder={userInfo?.userProfile} name="userProfile"/>
      </Form.Item>
      <Form.Item wrapperCol={{span: 14, offset: 4}} >
        <Row gutter={[16, 16]} justify="space-between" align="middle">
          <Col span={7}>
            <Button type="primary" htmlType="submit">修改信息</Button>
          </Col>
          <Col span={7} offset={4}> {/!* 这里offset是为了留出空间，但可能不是必需的，取决于你的布局需求 *!/}
            <Button danger onClick={() => setFormDisabled(true)}>修改密码</Button>
          </Col>
        </Row>
      </Form.Item>
    </Form>
  </>
);

export default UpdateInfo;
*/
